<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<input id="inputId" type="text" value="Hello!!"/><br/>
		<!-- <button onclick="clickMe()">点我</button> -->
		<input type="button" value="点我" onclick="clickMe()" />
		
		<script type="text/javascript">
			function clickMe() {
				console.log('clickMe');
				// document内置对象 var document = new ;
				var inputObj = document.getElementById('inputId');
				console.log(inputObj.id);
				console.log(inputObj.type);
				console.log(inputObj.value);
				// alert(inputObj.value);
				inputObj.value = "Hello Java";
				
				var intputObjs = document.getElementsByTagName('input');
				console.log(intputObjs);
				console.log(intputObjs[0]);
				console.log(document.getElementsByTagName('input')[1])
			}
		</script>
	</body>
</html>
